package com.lh.controller;

import com.lh.entity.table.MaterialInfo;
import com.lh.service.MaterialInfoService;
import com.lh.utils.Answer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/material")
public class MaterialInfoController {

    @Autowired
    private MaterialInfoService materialInfoService;

    @RequestMapping("/addMaterialInfo")
    public Answer<Object> addMaterialInfo(@RequestBody MaterialInfo materialInfo) {
        return  materialInfoService.addMaterialInfo(materialInfo);
    }

    @RequestMapping("/queryMaterialInfoList")
    public Answer<Object> queryMaterialInfoList(@RequestBody MaterialInfo materialInfo) {
        return  materialInfoService.queryMaterialInfoList(materialInfo);
    }



}
